
package com.augurit.gzcgwsp.mail;
import javax.mail.Authenticator;   
import javax.mail.PasswordAuthentication; 
/**
 *<P>title:</P>
 *<P>Description:</P>
 *@author zj
 */
public class SMTPAuthenticator extends Authenticator {   
    private String user;   
  
    private String password;   
  
    public SMTPAuthenticator(String user, String password) {   
       this.user = user;   
        this.password = password;   
    }   
  
    public PasswordAuthentication getPasswordAuthentication() {   
        return new PasswordAuthentication(user, password);   
    }   
}  
